package com.cashoutgaming.client.modules.toolbar;

import javax.inject.Singleton;
import com.gwtplatform.mvp.client.gin.AbstractPresenterModule;

/**
 * This class is the GIN module definition configuring the injectable classes
 * for the desktop mode of operation. It maps classes to either a global
 * singleton object or maps to an interface.
 */
public class ApplicationToolbarModule extends AbstractPresenterModule {

	@Override
	protected void configure() {
		// Application Presenters
		bind(ApplicationToolbarPresenter.class).in(Singleton.class);
		bind(ApplicationToolbarView.class).in(Singleton.class);
		bind(ApplicationToolbarPresenter.MyProxy.class).asEagerSingleton();
		bind(ApplicationToolbarPresenter.MyView.class).to(ApplicationToolbarView.class);
	}
}
